overflow (generic function with 1 method)
jl (generic function with 1 method)
✨ Pluto 1.0 ✨ in Fall 2021
github.com/fonsp/Pluto.jl
Thank you ❤️
Nicholas Bochenski Παναγιώτης Γεωργακόπουλος Michiel Dral Paul Berg Benjamin Lungwitz Connor Burns Rogerluo Eric Zhang Felipe S. S. Schneider Luka van der Plas Glen Hertz Eric Hanson Shuhei Kadowaki Jerry Ling Jelmar Gerritsen Rok Novosel Supanat Zachary Moon pupuis Michael Abbott Nicholas Bauer Patrick Bouffard Shashank Polasa TheCedarPrince fghzxm karlwessel Ciarán O'Mara Rik Huijzer Aayush Joglekar Alexis Chris Foster Dhruva Sambrani Diego Javier Zea Felix Cremer Fredrik Ekre Gautam Mishra Iagoba Apellaniz Ian Butterworth Immortalin Jeremiah Jonas Jonker János Veres Leo Logan Kilpatrick Marius Millea Matt Helm Musab Kılıç Philip D Loewen Robert Moss Rémi Vezy Satoshi Terasaki Sebastian Stabinger Sergey Konoplich Chebro Syx Pek Tobias Skarhed Troels Arnfred Bojesen Utkarsh Shah zuckberj Vlad Zhixing Wang Zlatan Vasović contradict disberd elliotsayes gregod heetbeet holomorphism romaindegivry Ömür Özkir
"Fons van der Plas"
"Nicholas Bochenski"
"Παναγιώτης Γεωργακόπουλος"
"Michiel Dral"
"Paul Berg"
"Benjamin Lungwitz"
"Connor Burns"
"Rogerluo"
"Eric Zhang"
"Felipe S. S. Schneider"
"Luka van der Plas"
"Glen Hertz"
"Eric Hanson"
"Shuhei Kadowaki"
"Jerry Ling"
"Jelmar Gerritsen"
"Rok Novosel"
"Supanat"
"Zachary Moon"
"pupuis"
"Zhixing Wang"
"Zlatan Vasović"
"contradict"
"disberd"
"elliotsayes"
"gregod"
"heetbeet"
"holomorphism"
"romaindegivry"
"Ömür Özkir"
2
Multiple definitions for hello
Combine all definitions into a single reactive cell using a `begin ... end` block.
Programming is too difficult!
"(...) those of us who are good at abstraction are the ones that flourish in programming, yet, even we don't have the power enough to pull it off. We're constantly failing and making mistakes and unable to comprehend what it is that we've just done."
– Jonathan Edwards, Future of Coding #37
"If we could only just minimize this intense intellectual burden of programming, then regular people would be able to do it, but we'd also be able to do more."
– Jonathan Edwards, Future of Coding #37
Visual programming?
Scratch
LabVIEW
How to get the column sums of a matrix:
Assembly
main:
push rbp
mov rbp, rsp
push rbx
sub rsp, 104
lea rax, [rbp-80]
mov rdi, rax
call std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::vector() [complete object constructor]
mov QWORD PTR [rbp-48], 2
mov QWORD PTR [rbp-56], 2
mov rdx, QWORD PTR [rbp-48]
lea rax, [rbp-80]
mov rsi, rdx
mov rdi, rax
call std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::resize(unsigned long)
lea rax, [rbp-112]
mov rdi, rax
call std::vector<int, std::allocator<int> >::vector() [complete object constructor]
mov rdx, QWORD PTR [rbp-56]
lea rax, [rbp-112]
mov rsi, rdx
mov rdi, rax
call std::vector<int, std::allocator<int> >::resize(unsigned long)
mov QWORD PTR [rbp-24], 0
jmp .L12
.L15:
mov DWORD PTR [rbp-28], 0
mov QWORD PTR [rbp-40], 0
jmp .L13
.L14:
mov rdx, QWORD PTR [rbp-40]
lea rax, [rbp-80]
mov rsi, rdx
mov rdi, rax
call std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::operator[](unsigned long)
mov rdx, rax
mov rax, QWORD PTR [rbp-24]
mov rsi, rax
mov rdi, rdx
call std::vector<int, std::allocator<int> >::operator[](unsigned long)
mov eax, DWORD PTR [rax]
add DWORD PTR [rbp-28], eax
add QWORD PTR [rbp-40], 1
.L13:
mov rax, QWORD PTR [rbp-40]
cmp rax, QWORD PTR [rbp-48]
jb .L14
mov ebx, DWORD PTR [rbp-28]
mov rdx, QWORD PTR [rbp-24]
lea rax, [rbp-112]
mov rsi, rdx
mov rdi, rax
call std::vector<int, std::allocator<int> >::operator[](unsigned long)
mov DWORD PTR [rax], ebx
add QWORD PTR [rbp-24], 1
.L12:
mov rax, QWORD PTR [rbp-24]
cmp rax, QWORD PTR [rbp-56]
jb .L15
lea rax, [rbp-112]
mov rdi, rax
call std::vector<int, std::allocator<int> >::~vector() [complete object destructor]
lea rax, [rbp-80]
mov rdi, rax
call std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::~vector() [complete object destructor]
mov eax, 0
jmp .L21
mov rbx, rax
lea rax, [rbp-112]
mov rdi, rax
call std::vector<int, std::allocator<int> >::~vector() [complete object destructor]
jmp .L18
mov rbx, rax
.L18:
lea rax, [rbp-80]
mov rdi, rax
call std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::~vector() [complete object destructor]
mov rax, rbx
mov rdi, rax
call _Unwind_Resume
.L21:
mov rbx, QWORD PTR [rbp-8]
leave
ret
.LC0:
.string "vector::_M_default_append"
__static_initialization_and_destruction_0(int, int):
push rbp
mov rbp, rsp
sub rsp, 16
mov DWORD PTR [rbp-4], edi
mov DWORD PTR [rbp-8], esi
cmp DWORD PTR [rbp-4], 1
jne .L245
cmp DWORD PTR [rbp-8], 65535
jne .L245
mov edi, OFFSET FLAT:_ZStL8__ioinit
call std::ios_base::Init::Init() [complete object constructor]
mov edx, OFFSET FLAT:__dso_handle
mov esi, OFFSET FLAT:_ZStL8__ioinit
mov edi, OFFSET FLAT:_ZNSt8ios_base4InitD1Ev
call __cxa_atexit
.L245:
nop
leave
ret
_GLOBAL__sub_I_main:
push rbp
mov rbp, rsp
mov esi, 65535
mov edi, 1
call __static_initialization_and_destruction_0(int, int)
pop rbp
ret
👉
C++
vector <int> result;
result.resize(cols);
for(size_t j = 0; j < cols; ++j)
{
int sum = 0;
for(size_t i = 0; i < rows; ++i)
{
sum += A[i][j];
}
result[j] = sum;
}
👉
Julia
sum(A; dims=1)
1
2
3
5
123
0.00994027
0.600439
0.121346
0.306115
function f(x)
y = rand(x)
end
UndefVarError: miniplot not defined
Here is what happened, the most recent locations are first:
- evalfrom boot.jl:373
- sevalfrom notebook.jl:423
- onestep_light
(e::Expr; m::Module) from notebook.jl:459 - onestep_light
(e::Expr; m::Module) from notebook.jl:446 - macro expansionfrom This cell: line 501
- Show more...
Used in PlutoTest.jl:
4.898979485566356
4
16
36
Multiple definitions for hello
Combine all definitions into a single reactive cell using a `begin ... end` block.
Another cell defining hello contains errors.
UndefVarError: left not defined
Here is what happened, the most recent locations are first:
- from :0
- evalfrom boot.jl:373
- sevalfrom notebook.jl:423
- onestep_light
(e::Expr; m::Module) from notebook.jl:442 - macro expansionfrom This cell: line 501
- Show more...
Code and LaTeX
5
UndefVarError: tex_example not defined
Here is what happened, the most recent locations are first:
- from :0
- evalfrom boot.jl:373
- sevalfrom notebook.jl:423
- onestep_light
(e::Expr; m::Module) from notebook.jl:442 - macro expansionfrom This cell: line 501
- Show more...
Widgets and code
"asdfasdfasdf"
missing
TextField2 (generic function with 1 method)
Visual and textual programming?
2×2 Matrix{Int64}:
95 44
40 21
2×2 Matrix{Int64}:
95 44
40 21
28
true
@widget (macro with 1 method)
slider (generic function with 1 method)
checkbox (generic function with 1 method)
stackrows (generic function with 1 method)
Div
outline (generic function with 1 method)
function height(p)
c1 * sqrt(p * c2)
end
to
function height(p)
c1 * log(p * c2)
end
flex (generic function with 1 method)
flex (generic function with 2 methods)
grid (generic function with 1 method)
aside (generic function with 1 method)
miniplot (generic function with 1 method)
tex (generic function with 2 methods)
